<?php
class TopicViewModel extends ViewModel{
    public $viewFields = array( 
        'Topic'=>array('_type'=>'LEFT',
                    '*',
        ),
        'Account'=>array('_type'=>'LEFT',
                    '_on'=>'Event.author_id=Account.uid',
                    'name'=>'author_name',
                    //('CONCAT("'.__APP__.'/user/'.'", `uid`)')=>'author_profile',
                    
        ),
    );
    public function TopicTableModel($topicType){
        $this->tableName= 'topic_'.$topicType;
        parent::__construct();
    }
}
?>